<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h1>图片上传</h1>
    <!-- 文件上传文件时，需改变属性enctype = “multipart/form-data”  -->
    <form action="/imgUpload" method="post" enctype="multipart/form-data">
        <input type="file" name="imgfile">
        <button type="submit">上传</button>
    </form>
</body>

</html>